package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.entity.AutodecorategoodsdEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * ${comments}
 *
 * @author Sen 524227263@qq.com
 * @since 1.0.0 2024-05-30
 */
@Mapper
public interface AutodecorategoodsdDao extends BaseDao<AutodecorategoodsdEntity> {

    @Select("select a.BusinessPrice,a.BusinessAmount,b.Name as goodsName,a.BusinessQuantity,a.Amount,a.Price,b.Units_FK from Autodecorategoodsd a " +
            "left join GoodsM b on a.GoodsM_FK = b.GoodsMOID where a.AutoDecorateM_FK =#{autoDecorateMoId}")
    List<Map<String, Object>> exSql(@Param("autoDecorateMoId") String autoDecorateMoId);
}